/*

bool check(double x) {} // 检查x是否满足某种性质

double bsearch_3(double l, double r)
{
    const double eps = 1e-6;   // eps 表示精度，取决于题目对精度的要求
    while (r - l > eps)
    {
        double mid = (l + r) / 2;
        if (check(mid)) r = mid;
        else l = mid;
    }
    return l;
}

*/

#include <bits/stdc++.h>
using namespace std;

int main() {
  double x;
  cin>>x;//100

  //数的三次方根
  double l=-1e4,r=1e4;
  while(r-l>1e-8){
    double mid=(l+r)/2;
    if(mid*mid*mid>=x) r=mid;
    else l=mid;
  }

  printf("%lf\n",l);//4.641589

  cout<<"------------------------"<<endl;

  //数的二次方根
  double l1=0,r1=x;
  while(r1-l1>1e-8){
    double midd=(l1+r1)/2;
    if(midd*midd>=x) r1=midd;
    else l1=midd;
  }

  printf("%lf\n",l1);//10.000000
  return 0;
}
